import { createRouter, createWebHashHistory } from 'vue-router'



const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../components/HelloWorld.vue')
  },
  {
    path: '/add',
    name: "add",
    component: () => import('../views/Add.vue')
  },
  {
    path: '/update/:id',
    name: "update",
    component: () => import('../views/update.vue')
  }

]


const router = createRouter({
  history: createWebHashHistory(),
  routes
})


export default router